<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="备份副本所在单机和恢复目标单机安装目录不一致，导致GaussDB T单机恢复失败（适用于单机部署形态）">
  <meta name="product" content="">
  <meta name="DC.Relation" scheme="URI" content="gaussdbT_00085.html">
  <meta name="prodname" content="">
  <meta name="version" content="">
  <meta name="brand" content="">
  <meta name="DC.Publisher" content="20250306">
  <meta name="prodname" content="csbs">
  <meta name="documenttype" content="usermanual">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="gaussdbT_00093">
  <meta name="DC.Language" content="zh-cn">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>备份副本所在单机和恢复目标单机安装目录不一致，导致GaussDB T单机恢复失败（适用于单机部署形态）</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="gaussdbT_00093"></a><a name="gaussdbT_00093"></a>
  <h1 class="topictitle1">备份副本所在单机和恢复目标单机安装目录不一致，导致GaussDB T单机恢复失败（适用于单机部署形态）</h1>
  <div>
   <div class="section">
    <h4 class="sectiontitle">故障现象</h4>
    <p>GaussDB T单机部署形态恢复失败，事件提示“备份副本所在单机的安装目录（<em>{0}</em>）与恢复目标单机的安装目录（<em>{1}</em>）不一致，请确保在配置文件zengine.ini中配置了DB_FILE_NAME_CONVERT和LOG_FILE_NAME_CONVERT。请参考《OceanProtect 备份一体机 故障处理》或联系技术支持工程师协助处理”。</p>
   </div>
   <div class="section">
    <h4 class="sectiontitle">可能原因</h4>
    <p>备份副本所在单机和恢复目标单机安装目录不一致。</p>
   </div>
   <div class="section">
    <h4 class="sectiontitle">处理步骤</h4>
    <ol>
     <li><span>登录目标单机，依次执行以下命令进入配置文件的编辑窗口。</span><p></p><pre class="screen">su - omm
cd $GSDB_DATA/cfg
vi zengine.ini</pre> <p></p></li>
     <li><span>编辑“DB_FILE_NAME_CONVERT”和“LOG_FILE_NAME_CONVERT”参数的值（当参数不存在时需要在配置文件中补充，可参考示例图），参数值修改示例如下。</span><p></p><pre class="screen">DB_FILE_NAME_CONVERT = <em>{0}</em>/data,<em>{1}</em>/data
LOG_FILE_NAME_CONVERT = <em>{0}</em>/data,<em>{1}</em>/data</pre>
      <div class="note">
       <img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span>
       <div class="notebody">
        <p>参数值的“{0}”和“{1}”分别对应恢复失败事件提示中的“{0}”和“{1}”。</p>
       </div>
      </div> <p>配置文件示例图如下。</p> <p><span><img src="zh-cn_image_0000002164601122.png"></span></p> <p></p></li>
     <li><span>保存编辑内容后，重新执行恢复任务。</span></li>
    </ol>
   </div>
   <p></p>
  </div>
  <div>
   <div class="familylinks">
    <div class="parentlink">
     <strong>父主题：</strong> <a href="gaussdbT_00085.html">常见问题</a>
    </div>
   </div>
  </div>
 </body>
</html>